package com.kyz.frameworkapp

import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.kyz.frameworkapp.databinding.ActivityMainBinding

class MainActivity : AppCompatActivity() {

    private lateinit var binding: ActivityMainBinding
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = ActivityMainBinding.inflate(layoutInflater)
        setContentView(binding.root)
        //SpeechPlugin.createInstance(this)
        binding.tv.setOnClickListener {

            val service = Intent()
            service.action = "com.kyz.speechservice.SpeechService"
            service.setPackage("com.kyz.speechservice")
            startService(service)
            //SpeechPlugin.getInstance().startSpeak(tv.text.toString())
        }
    }


}